package com.guchenbo.study.aop;

import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

import javax.annotation.Resource;

/**
 * @Author guchenbo
 * @Date 2019/8/16.
 */
@SpringBootApplication
public class AopTxApplication {
    @Resource
    private TxServiceA txServiceA;

    public static void main(String[] args) {
        SpringApplication.run(AopTxApplication.class, args);

    }

    @Bean
    public CommandLineRunner commandLineRunner() {
        return (a) -> {
//            txServiceA.defaultTx(false);
        };
    }
}
